package com.smart.system.service.impl;

import com.smart.common.utils.ffmpeg.FfmpegUtils;
import com.smart.system.service.IFfmpegService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FfmpegServiceImpl implements IFfmpegService {

    @Autowired
    private FfmpegUtils ffmpegUtils;


    @Override
    public boolean start(String bucketId, String channel) {
        ffmpegUtils.startProcess(bucketId,channel);
        return true;
    }

    @Override
    public boolean stop(String bucketId,String channel) {
        ffmpegUtils.stopProcess(bucketId,channel);
        return true;
    }
}
